package book;

import java.time.LocalDate;

public class Book {
	private int bookId;         // id
	private String bookName;    // 书名
	private String author;      // 作者
	private boolean rent;       // 是否被借 没借出去false，已经借出去true
	private LocalDate rentDate; // 借出时间
	private int rentTime;       // 借出次数
	
	public Book() {
		super();
	}
	public Book(int bookId, String bookName, String author, boolean rent, LocalDate rentDate, int rentTime) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
		this.rent = rent;
		this.rentDate = rentDate;
		this.rentTime = rentTime;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public boolean isRent() {
		return rent;
	}
	public void setRent(boolean rent) {
		this.rent = rent;
	}
	public LocalDate getRentDate() {
		return rentDate;
	}
	public void setRentDate(LocalDate rentDate) {
		this.rentDate = rentDate;
	}
	public int getRentTime() {
		return rentTime;
	}
	public void setRentTime(int rentTime) {
		this.rentTime = rentTime;
	}
	@Override
	public String toString() {
		return "Book [bookId=" + bookId + ", bookName=" + bookName + ", author=" + author + ", rent=" + rent
				+ ", rentDate=" + rentDate + ", rentTime=" + rentTime + "]";
	}
}
